import { axios } from '../utils/http'

// 获取电台分类列表
export const catelist = () => {
  return axios.get('/dj/catelist')
}

// 获取推荐节目数据
export const programRecom = () => {
  return axios.get('/program/recommend')
}

/**
 * @description 获取电台排行榜
 * @param { Number } limit - 数量限制
 */
export const programTop = (limit) => {
  const params = {
    limit
  }
  return axios.get('/dj/program/toplist', {params})
}
/**
 * @description 获取电台排行榜
 * @param { Number } id - 电台种类id
 */
export const radioMore = (id) => {
  const params = {
    type: id
  }
  return axios.get('/dj/recommend/type', {params})
}
